// src/utils/api.js
import axios from 'axios'

export function getTasks() {
  return axios.get('/api/v1/tasks')
}

export function addTask(task) {
  return axios.post('/api/v1/tasks', task)
}

export function updateTask(id, updates) {
  return axios.put(`/api/v1/tasks/${id}`, updates)
}

export function deleteTask(id) {
  return axios.delete(`/api/v1/tasks/${id}`)
}
